.layout-box{
  position: relative;
  display: inline-block;
  height: 106px;
  width: 144px;
  font-size: 14px;
  .margin-top-box, .padding-top-box {
    position: relative;
    display: flex;
    &:before {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px #484848;
      border-right: solid 10px #484848;
      border-left: solid 10px transparent;
      border-bottom: solid 10px transparent;
    }
    .margin-top-input{
      line-height: 20px;
      display: inline-block;
      text-align: center;
      outline: none;
      width: 100px;
      height: 20px;
      color: #D3D3D3;
      background: #484848;
    }
    .padding-top-input{
      line-height: 20px;
      display: inline-block;
      text-align: center;
      width: 54px;
      outline: none;
      height: 20px;
      color: #D3D3D3;
      background: #484848;
    }
    &:after {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px #484848;
      border-left: solid 10px #484848;
      border-right: solid 10px transparent;
      border-bottom: solid 10px transparent;
    }
  }
  .padding-top-box{
    margin-left: 24px;
    margin-top: 2px;
  }
  .margin-left-box, .padding-left-box{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4px;
    &:before {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px transparent;
      border-right: solid 10px transparent;
      border-left: solid 10px #484848;
      border-bottom: solid 10px #484848;
    }
    &:after {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px #484848;
      border-left: solid 10px #484848;
      border-right: solid 10px transparent;
      border-bottom: solid 10px transparent;
    }
    .margin-left-input, .padding-left-input{
      display: inline-block;
      width: 20px;
      height: 60px;
      outline: none;
      color: #D3D3D3;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      background: #484848;
    }
    .padding-left-input {
      height: 20px;
    }
  }
  .padding-left-box{
    position: absolute;
    left: 22px;
    top: 23px;
  }
  .margin-bottom-box, .padding-bottom-box{
    position: absolute;
    display: flex;
    bottom: 0;
    left: 1px;
    &:before {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px transparent;
      border-right: solid 10px #484848;
      border-left: solid 10px transparent;
      border-bottom: solid 10px #484848;
    }
    .margin-bottom-input, .padding-bottom-input{
      line-height: 20px;
      display: inline-block;
      text-align: center;
      outline: none;
      width: 100px;
      height: 20px;
      color: #D3D3D3;
      background: #484848;
    }
    .padding-bottom-input{
      width: 54px;
    }
    &:after {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px transparent;
      border-right: solid 10px transparent;
      border-left: solid 10px #484848;
      border-bottom: solid 10px #484848;
    }
  }
  .padding-bottom-box{
    bottom: 22px;
    left: 24px;
  }

  .margin-right-box, .padding-right-box{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 2px;
    right: 3px;
    &:before {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px transparent;
      border-left: solid 10px transparent;
      border-right: solid 10px #484848;
      border-bottom: solid 10px #484848;
    }
    &:after {
      content: ' ';
      display: inline-block;
      width: 0;
      height: 0;
      border-top: solid 10px #484848;
      border-right: solid 10px #484848;
      border-left: solid 10px transparent;
      border-bottom: solid 10px transparent;
    }
    .margin-right-input, .padding-right-input{
      display: inline-block;
      width: 20px;
      height: 60px;
      outline: none;
      color: #D3D3D3;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      background: #484848;
    }
    .padding-right-input {
      height: 20px;
    }
  }
  .padding-right-box{
    position: absolute;
    right: 24px;
    top: 23px;
  }
}
